package com.hserver.docker.dao;

import com.hserver.docker.bean.Record;
import net.hserver.plugins.beetlsql.annotation.BeetlSQL;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.Sql;
import org.beetl.sql.core.mapper.BaseMapper;


/**
 * @author hxm
 */
@BeetlSQL
public interface RecordMapper extends BaseMapper<Record> {

    @Sql("update record set status = ?  where id=?")
    void updateStatus(@Param("p")String status,@Param("p1")String id);



    @Sql("update record set status = ?,end_time=? where id=?")
    void updateStatus(@Param("p")String status,@Param("p1")Integer time,@Param("p2")String id);

}
